package cn.edu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Mr.ma
 * @since 2022/11/23 15:38
 **/
@Data
@TableName("tb_user")
@ApiModel(value = "User", description = "用户对象")
public class User {
    @TableId
    @ApiModelProperty("主键")
    private Integer id;
    @ApiModelProperty("账号")
    private String username;
    @ApiModelProperty("密码")
    private int password;
    @ApiModelProperty("真实姓名")
    @TableField("realName")
    private String realName;
}
